Skip to content

Comments

Adds a fix and a test to cover Powershell keywords#20

Merged
adfoster-r7 merged 1 commit intomasterfrom
adds-test-for-powershell-keywords
Aug 1, 2025
Merged

Adds a fix and a test to cover Powershell keywords#20
adfoster-r7 merged 1 commit intomasterfrom
adds-test-for-powershell-keywords

Conversation

@cgranleese-r7
Copy link
Contributor

@cgranleese-r7 cgranleese-r7 commented Aug 1, 2025

Adds a fix and a test to cover Powershell keywords.

Verification

  • CI passes

@cgranleese-r7 cgranleese-r7 force-pushed the adds-test-for-powershell-keywords branch from 648b5e7 to 28c0703 Compare August 1, 2025 14:03
@cgranleese-r7 cgranleese-r7 changed the title Adds tests to cover powershell keywords Adds a fix and a test to cover the new Powershell keywords Aug 1, 2025
@cgranleese-r7 cgranleese-r7 changed the title Adds a fix and a test to cover the new Powershell keywords Adds a fix and a test to cover Powershell keywords Aug 1, 2025
def forbid_id?(ident = nil)
ident.nil? or @opts[:forbidden].any? {|f| f.match(/^#{ident}$/i) }
return true if ident.nil?
@opts[:forbidden].any? { |f| f.casecmp?(ident) }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future travellers: if ident has $ in it or other inbuilt regex chars, it caused issues with the old implementation

@adfoster-r7 adfoster-r7 merged commit dc640c1 into master Aug 1, 2025
40 checks passed
@cgranleese-r7 cgranleese-r7 deleted the adds-test-for-powershell-keywords branch August 1, 2025 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants